<?php
//日志组件配置
return array(
	'class'=>'CLogRouter',
	'routes'=>array(
		//错误日志
		array(
			'class'=>'CFileLogRoute',
			'levels'=>'error, warning',
			'logPath'=>Yii::getPathOfAlias('logPath.'.ModelName),
			'logFile'=>'error.log',
			'maxFileSize'=>131072,	//128M
			'maxLogFiles'=>30,
		),
		//操作日志
		array(
			'class'=>'CFileLogRoute',
			'levels'=>'info',
			'logPath'=>Yii::getPathOfAlias('logPath.'.ModelName),
			'logFile'=>'info.log',
			'maxFileSize'=>131072,	//128M
			'maxLogFiles'=>30,
		),
		//数据库日志
		array(
			'class'=>'CFileLogRoute',
			'categories'=>'system.db.*',
			'logPath'=>Yii::getPathOfAlias('logPath.'.ModelName),
			'logFile'=>'db.log',
			'maxFileSize'=>131072,	//128M
			'maxLogFiles'=>30,
		),
	),
);